Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

No need to poll#71

Open
richardschneider wants to merge 6 commits intomasterfrom
no-poll
Open

No need to poll#71
richardschneider wants to merge 6 commits intomasterfrom
no-poll

Conversation

@richardschneider
Copy link
Copy Markdown
Contributor

See #70

@ghost ghost assigned richardschneider Feb 2, 2018
@ghost ghost added the status/in-progress In progress label Feb 2, 2018
@richardschneider richardschneider mentioned this pull request Feb 2, 2018
@richardschneider
Copy link
Copy Markdown
Contributor Author

Don't know why jenkins/pr-merge passes and jenkins/branch doesn't.

options = options || {}

this.broadcast = options.broadcast !== false
this.interval = options.interval || (1e3 * 10)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richardschneider instead of removing the feature all together, it should support for a single beacon.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure why you want a beacon?

interval controlled how often an MDNS query is sent. Every time it is sent, all other IPFS nodes must respond with their DNS records.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diasdavid any comments?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see a need to drop the interval beacon feature. The module should support both, single beacon and interval.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First off, a beacon is not what MDNS is about. Secondly it can be very expensive.

Consider a data centre with 100 servers all running IPFS with an interval of 10 minutes, or 600 seconds. On average, a node will beacon every 6 seconds. Then every 6 seconds all other nodes must wake-up and reply with their DNS records. All nodes will then see all the nodes responses and have to then .emit discovered nodes. It's a real waste of network bandwidth and CPU.

@daviddias daviddias added status/ready Ready to be worked and removed status/in-progress In progress labels Feb 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

status/ready Ready to be worked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants